package us.x.slowexp.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import us.x.slowexp.dao.PageExpressDao;
import us.x.slowexp.domain.Express;
import us.x.slowexp.domain.Page;
import us.x.slowexp.service.PageExpressService;

@Service
public class PageExpressServiceImpl implements PageExpressService {
	
	@Autowired
	private PageExpressDao pageExpressDao;
	
	public int queryCounts() {
		return this.pageExpressDao.queryCounts();
	}

	public List<Express> queryExpress(Page page) {
		return this.pageExpressDao.queryExpress(page);
	}
	
	public int queryHisCounts() {
		return this.pageExpressDao.queryHisCounts();
	}

	public List<Express> queryHisExpress(Page page) {
		return this.pageExpressDao.queryHisExpress(page);
	}

}
